import { Button, Result } from 'antd';
import React from 'react';
import { useHistory } from 'react-router-dom';

const Page403: React.FC = () => {
  const history = useHistory();
  return (
    <Result
      status="403"
      title="FORBIDDEN"
      subTitle="对不起，您没有此页面的访问权限"
      extra={
        <Button type="primary" onClick={() => history.push('/')}>
          首 页
        </Button>
      }
    />
  );
};

export default Page403;
